package hh.eurekaserver;

import com.netflix.discovery.EurekaClient;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@EnableEurekaServer
@SpringBootApplication
public class EurekaServer implements InitializingBean {

    @Autowired
    EurekaClient client;

    public static void main(String[] args) {
        SpringApplication.run(EurekaServer.class, args);
    }

    @Override
    public void afterPropertiesSet() throws Exception {

        System.out.println(1);
    }
}
